export type volunteerModel = {
  title: string //线索名称
  clueNumber: string //线索编号
  createdBy: string //创建人
  createdTime: string //创建时间
  delFlag: number //是否删除 0否 1是
  id: number //主键ID
  provideId: number //征集信息主键ID
  receiveTime: string //接收时间
  receiveUserId: number //接收人ID
  statusCode: string //状态 关联字典A40
  transferUserId: number //移交人ID
  updatedBy: string //更新人
  updatedTime: string //更新时间
  receiveUser: string //接收人
  statusName: string //状态
  transferUser: string //移交人
  totalCount: number //总行数,
  startDate: string,
  endDate: string,
  endEnrollDate: string,
  updateTime: string
}

export type preselectionModel = {
  auditFlag: number
  auditTime: string
  createTime: string
  education: string
  id: number
  leagueId: string
  leagueName: string
  level: string
  mobilePhone: string
  name: string
  nation: string
  openId: string
  sex: number
}

export type volunteerLeagueModel = {
  createBy: string
  createTime: string
  delFlag: boolean
  id: number
  leader: Array<any>
  leagueName: string
  members: Array<any>
  updateBy: string
  updateTime: string
}

export type signConfigModel = {
  arriveLate: string
  createBy: string
  createTime: string
  delFlag: boolean
  endConfigDate: string
  id: number
  leagueId: number
  leagueName: string
  leaveEarly: string
  startConfigDate: string
  updateBy: string
  updateTime: string
}

export type examineModal = {
  attendanceDays: string
  attendanceTime: string
  leagueId: number
  leagueName: string,
  peopleNums: string
  schedulingNums: string
}

const api: ApiConfig = {
  /**
   * 招募公告·分页列表
   */
  list: {
    url: '/volunteer/recruitNotice/list',
    method: 'GET',
  },
  /**
   * 招募公告·详情
   */
  info: {
    url: '/volunteer/recruitNotice/info/:id',
    method: 'GET',
  },
  /**
   * 招募公告·删除
   */
  delete: {
    url: '/volunteer/recruitNotice/delete',
    method: 'POST',
  },
  /**
   * 招募公告·新增
   */
  save: {
    url: '/volunteer/recruitNotice/save',
    method: 'POST',
  },
  /**
   * 招募公告·修改
   */
  update: {
    url: '/volunteer/recruitNotice/update',
    method: 'POST',
  },
  /**
   * 招募公告·下架
   */
  updateStatusDown: {
    url: '/volunteer/recruitNotice/updateStatusDown',
    method: 'POST',
  },
  /**
   * 招募公告·上架
   */
  updateStatusUp: {
    url: '/volunteer/recruitNotice/updateStatusUp',
    method: 'POST',
  },
  /**
   * 招募公告·下移
   */
  recruitNoticeSortDown: {
    url: '/volunteer/recruitNotice/sortDown/:id',
    method: 'POST',
  },
  /**
   * 招募公告·上移
   */
  recruitNoticeSortUp: {
    url: '/volunteer/recruitNotice/sortUp/:id',
    method: 'POST',
  },
  /**
   * 志愿者招募预选·分页列表
   */
  preselectionList: {
    url: '/volunteer/volunteer/preselectionList',
    method: 'GET',
  },
  /**
   * 志愿者档案·招募预选·详情
   */
  volunteerInfo: {
    url: '/volunteer/volunteer/info/:id',
    method: 'GET',
  },
  /**
   * 志愿者招募预选·审核通过
   */
  auditPass: {
    url: '/volunteer/volunteer/auditPass',
    method: 'POST',
  },
  /**
   * 志愿者招募预选·审核不通过
   */
  auditRefuse: {
    url: '/volunteer/volunteer/auditRefuse',
    method: 'POST',
  },
  /**
   * 志愿服务联盟·下拉列表
   */
  leagueOptions: {
    url: '/volunteer/volunteerLeague/leagueOptions',
    method: 'GET',
  },
  /**
   * 志愿服务联盟·下拉列表
   */
  volunteerLeagueRelVolunteer: {
    url: '/volunteer/volunteerLeague/relVolunteer',
    method: 'GET',
  },
  
  /**
   * 志愿者档案·分页列表
   */
  volunteerList: {
    url: '/volunteer/volunteer/list',
    method: 'GET',
  },
  /**
   * 志愿者新增·服务岗位-特长信息初始化
   */
  volunteerSpecityInit: {
    url: '/volunteer/volunteer/specityInit',
    method: 'GET',
  },
  /**
   * 志愿者档案·新增
   */
  volunteerSave: {
    url: '/volunteer/volunteer/save',
    method: 'POST',
  },
  /**
   * 志愿者档案·编辑
   */
  volunteerUpdate: {
    url: '/volunteer/volunteer/update',
    method: 'POST',
  },
  /**
   * 志愿者档案·删除
   */
  volunteerDelete: {
    url: '/volunteer/volunteer/delete',
    method: 'POST',
  },
  /**
   * 志愿服务联盟·分页列表
   */
  volunteerLeagueList: {
    url: '/volunteer/volunteerLeague/list',
    method: 'GET',
  },
  /**
   * 志愿服务联盟·删除
   */
  volunteerLeagueDelete: {
    url: '/volunteer/volunteerLeague/delete',
    method: 'POST',
  },
  /**
   * 志愿服务联盟·保存
   */
  volunteerLeagueSave: {
    url: '/volunteer/volunteerLeague/save',
    method: 'POST',
  },
  /**
   * 志愿服务联盟·编辑
   */
  volunteerLeagueUpdate: {
    url: '/volunteer/volunteerLeague/update',
    method: 'POST',
  },
  /**
   * 志愿者签到配置·分页列表
   */
  signConfigList: {
    url: '/volunteer/signConfig/list',
    method: 'GET',
  },
  /**
   * 志愿者签到配置·新增
   */
  signConfigSave: {
    url: '/volunteer/signConfig/save',
    method: 'POST',
  },
  /**
   * 志愿者签到配置·编辑
   */
  signConfigUpdate: {
    url: '/volunteer/signConfig/update',
    method: 'POST',
  },
  /**
   * 志愿服务联盟·删除
   */
  signConfigDelete: {
    url: '/volunteer/signConfig/delete',
    method: 'POST',
  },
  /**
   * 志愿者考核记录·分页列表
   */
  examineList: {
    url: '/volunteer/attendanceRecord/examineList',
    method: 'GET',
  },
  /**
   * 志愿者考核记录·导出
   */
  examineExport: {
    url: '/volunteer/attendanceRecord/examineExport',
    method: 'GET',
    responseType: 'blob'
  },
  /**
   * 志愿者工作考勤记录·分页列表
   */
  attendanceRecordList: {
    url: '/volunteer/attendanceRecord/list',
    method: 'GET',
  },
  /**
   * 志愿者工作考勤记录·详情
   */
  attendanceRecordInfo: {
    url: '/volunteer/attendanceRecord/info/:id',
    method: 'GET',
  },
  /**
   * 志愿者考勤记录·补签
   */
  attendanceRecordRepairSign: {
    url: '/volunteer/attendanceRecord/repairSign',
    method: 'POST',
  },
  /**
   * 志愿者考勤记录·新增
   */
  attendanceRecordAdd: {
    url: '/volunteer/attendanceRecord/save',
    method: 'POST',
  },
  /**
   * 志愿者考勤记录·修改
   */
  attendanceRecordUpdate: {
    url: '/volunteer/attendanceRecord/update',
    method: 'POST',
  },
  /**
   * 志愿者考核记录·导出
   */
  attendanceRecordExport: {
    url: '/volunteer/attendanceRecord/export',
    method: 'GET',
    responseType: 'blob'
  },
  /**
   * 志愿者排班·列表
   */
  volunteerScheduleList: {
    url: '/volunteer/volunteerSchedule/list',
    method: 'GET',
  },
  /**
   * 志愿者排班·详情
   */
  volunteerScheduleInfo: {
    url: '/volunteer/volunteerSchedule/info/:id',
    method: 'GET',
  },
  /**
   * 志愿者排班·新增
   */
  volunteerScheduleSave: {
    url: '/volunteer/volunteerSchedule/save',
    method: 'POST',
  },
  /**
   * 志愿者排班·编辑
   */
  volunteerScheduleUpdate: {
    url: '/volunteer/volunteerSchedule/update',
    method: 'POST',
  },
  /**
   * 志愿者排班·删除
   */
  volunteerScheduleDel: {
    url: '/volunteer/volunteerSchedule/delete',
    method: 'POST',
  }
}

export default api
